package com.vhall.component.entity.vote.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 投票信息表
 * </p>
 *
 * @author longzhen.gong
 * @date 2021/7/6 13:49
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
public class VotesUpdateRepVO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ParamName(value = "vote_id")
    private Long voteId;

    /**
     * 标题
     */
    @ParamName("title")
    private String title;

    /**
     * 业务端扩展字段
     */
    @ParamName("extend")
    private String extend;

    /**
     * 用户id
     */
    @NotNull(message = "account_id参数异常")
    @ParamName("account_id")
    private Integer accountId;

    /**
     * 应用id
     */
    @ParamName("app_id")
    private String appId;


    /**
     * 投票限时时长 默认0 为不限时
     */
    @ParamName("limit_time")
    private Integer limitTime;

    /**
     * 可选选项数量 默认单选
     */
    @ParamName("option_num")
    private Integer optionNum;


    @NotBlank(message = "room_id参数异常")
    @ParamName("room_id")
    private String roomId;

}
